package Studing;

/**
 * @ClassName TestFactory
 * @Description: TODO
 * @Author hl
 * @Date 2020/9/21
 * @Version V1.0
 **/
class A {
    static {
        System.out.println("a");
    }
    public A(){
        System.out.println("b");
    }

}
class B extends A{
    static {
        System.out.println("c");
    }
    public B(){
        System.out.println("d");
    }
}
public class DaHua{
    static int x=10;
    static {
        x+=5;
    }
    public static void main(String[] args) {
        System.out.println("X="+x);
    }
    static {x/=3;}
}
